import { request } from 'umi';

/**
 * 项目基本信息-筛选列表
 * @param {*} params
 * @returns
 */
export async function listLabelNode() {
  return request('/api/projectBaseInfo/listLabelNode', {
    method: 'get',
  });
}

/**
 * 项目基本信息-分页
 * @param {*} data
 */
export async function pageProjectBaseInfo(data) {
  return request('/api/projectBaseInfo/pageProjectBaseInfo', {
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/json',
    },
  });
}

/**
 * 项目基本信息-保存
 * @param {*} data 
 * @returns 
 */
export async function saveProjectBaseInfo(data) {
  return request('/api/projectBaseInfo/saveProjectBaseInfo',{
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

/**
 * 项目基本信息-删除
 * @param {*} params 
 */
export async function deleteProjectBaseInfo(params) {
  console.log(params)
  return request('/api/projectBaseInfo/deleteProjectBaseInfo',{
    method: 'delete',
    params,
  })
}
